<div class="header">
  <div class="container">
    <ul class="nav">
      <li><a routerLink="/" >首页</a></li>
      <li><a routerLink="/register" >注册</a></li>
      <li *ngIf="!authService.isLoggedIn"><a routerLink="/login" >登陆</a></li>
      <li><a routerLink="/admin">个人中心</a></li>
      <li *ngIf="authService.isLoggedIn"><a href="javascript:;" (click)="logout()">注销</a></li>
    </ul>
  </div>
</div>
<router-outlet></router-outlet>
